class CouponPackEntity {
  String? content;
  int? couponCount;
  int? couponId;
  String? couponDeduct;
  String? couponRequire;
  int? couponType;
  int? id;
  String? image;
  String? name;
  double? price;
  double? priceOld;
  String? nextPayTime;

  CouponPackEntity(
      {this.content,
        this.couponCount,
        this.couponId,
        this.couponDeduct,
        this.couponRequire,
        this.couponType,
        this.id,
        this.image,
        this.name,
        this.price,
        this.priceOld,
        this.nextPayTime
      });

  CouponPackEntity.fromJson(Map<String, dynamic> json) {
    content = json['content'];
    couponCount = json['couponCount'];
    couponId = json['couponId'];
    couponDeduct = json['couponP1'];
    couponRequire = json['couponP2'];
    couponType = json['couponType'];
    id = json['id'];
    image = json['image'];
    name = json['name'];
    price = json['price'];
    priceOld = json['priceOld'];
    nextPayTime = json['nextPayTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['content'] = this.content;
    data['couponCount'] = this.couponCount;
    data['couponId'] = this.couponId;
    data['couponP1'] = this.couponDeduct;
    data['couponP2'] = this.couponRequire;
    data['couponType'] = this.couponType;
    data['id'] = this.id;
    data['image'] = this.image;
    data['name'] = this.name;
    data['price'] = this.price;
    data['priceOld'] = this.priceOld;
    data['nextPayTime'] = this.nextPayTime;
    return data;
  }
}